package Factory.SimpleFactory;

public class Client {
    public static void main(String[] args) {
        Factory factory = new Factory();

        Fruit fruit1,fruit2,fruit3;

        fruit1= factory.CreateFruit("Orange");
        fruit2= factory.CreateFruit("Apple");
        fruit3= factory.CreateFruit("Banana");

        fruit1.eat();
        fruit2.eat();
        fruit3.eat();
    }
}
